package com.kedi.usercenter.pclogin.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.Map;

@Mapper
public interface AdminLoginMapper {

    /**
     * PC端管理员用户登录
     * @return
     */
    @Select("SELECT a.administrator_id as id, a.login_name as name, a. PASSWORD as password, a.real_name, a.phone_num, a.idcard FROM " +
            "administrator a WHERE a.login_name = #{loginName} AND a. PASSWORD = #{password}")
    Map<String,Object> selectByNameAndPs(@Param("password") String mPassword, @Param("loginName") String loginName) throws Exception;

}
